<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>新闻管理</title>
<link rel="shortcut icon" href="/favicon.ico">
<link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="../css/animate.css" rel="stylesheet">
<link href="../css/style.css?v=4.1.0" rel="stylesheet">
<link href="../plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link rel="stylesheet" href="../plugins/layui/css/layui.css"  media="all">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
  <div class="row">
    <div class="col-sm-12">
      <div class="ibox float-e-margins">
        <div class="ibox-title">
          <h5 id="ibox-title">新闻管理</h5>
          <div class="ibox-tools"> <a class="collapse-link"> <i class="fa fa-chevron-up"></i> </a> <a class="close-link"> <i class="fa fa-times"></i> </a> </div>
        </div>        
        <div class="ibox-content">
            <div class="fixed-table-toolbar" style="height:50px;">
              <div class="bars pull-left">
                <div class="btn-group hidden-xs" id="exampleTableEventsToolbar" role="group">
                  <button type="button" class="btn btn-outline btn-default" title="新建新闻" id="addArticle"> <i class="glyphicon glyphicon-plus" aria-hidden="true"></i> </button>
                  <button type="button" class="btn btn-outline btn-default" title="批量删除" id="delAll"> <i class="glyphicon glyphicon-trash" aria-hidden="true"></i> </button>
                  <button type="button" class="btn btn-outline btn-default" title="转移" id="alterMenu"> <i  class="glyphicon glyphicon-share" aria-hidden="true"></i> </button>
                </div>
              </div>
              <div class="columns columns-right btn-group pull-right">
                <button class="btn btn-default btn-outline" type="button" name="search" title="搜索" id="search"> <i class="glyphicon glyphicon-search"></i> </button>
                <button class="btn btn-default btn-outline" type="button" name="refresh" title="刷新" id="refresh"> <i class="glyphicon glyphicon-repeat"></i> </button>
              </div>
              <div class="pull-right search">
                <input name="keyword" class="form-control input-outline" type="text" placeholder="请输标题" id="keyword">
              </div>
            </div>
          <table id="article-list" lay-filter="test">
          </table>
        </div>
      </div>
    </div>    
  </div>
</div>
<div class="modal inmodal" id="user-model">
	<div class="modal-content animated bounceInUp">
      <div class="ibox-title">
        <h5 id="edit-title">新增新闻</h5>
        <div class="ibox-tools"><a class="close-link" data-dismiss="modal"> <i class="fa fa-times"></i> </a> </div>
      </div>
      <div class="ibox-content">
        <fieldset class="layui-elem-field layui-field-title">
          <form class="layui-form layui-form-pane" action="">
          <input type="hidden" name="articleId" value="0" />
          <input type="hidden" name="menuId" value="0" />
            <div class="layui-form-item">
              <label class="layui-form-label">标题</label>
              <div class="layui-input-block">
                <input type="text" id="articleTitle" name="articleTitle" autocomplete="off" placeholder="请输入标题" class="layui-input" lay-verify="required">
              </div>
            </div>
            <div class="layui-form-item" style="display:none">
              <label class="layui-form-label">来源</label>
              <div class="layui-input-block">
                <input type="text" id="articleSource" name="articleSource" autocomplete="off" placeholder="请输入来源" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">作者</label>
              <div class="layui-input-block">
                <input type="text" id="articleAuthor" name="articleAuthor" autocomplete="off" placeholder="请输入作者" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">排序</label>
              <div class="layui-input-block">
                <input type="text" id="articleOrder" name="articleOrder" autocomplete="off" placeholder="请输入文章序号" class="layui-input" lay-verify="required|number">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">图片</label>
              <div class="layui-input-inline">
                <input id="articlePicture" name="articlePicture" type="text" class="layui-input" value="">
              </div>
              <div class="layui-input-inline" style="width:114px;">
                <button type="button" class="layui-btn" id="uploadPictrue">
                  <i class="layui-icon">&#xe67c;</i>上传图片
                </button>
              </div>
              <div class="layui-input-inline" style="width:114px;">
                <button type="button" class="layui-btn" id="browseServer">
                  <i class="layui-icon">&#xe67c;</i>浏览服务器
                </button>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label" style="width:120px;">首页手机图片</label>
              <div class="layui-input-inline">
                <input id="articlePicture2" name="articlePicture2" type="text" class="layui-input" value="">
              </div>
              <div class="layui-input-inline" style="width:114px;">
                <button type="button" class="layui-btn" id="uploadPictrue2">
                  <i class="layui-icon">&#xe67c;</i>上传图片
                </button>
              </div>
              <div class="layui-input-inline" style="width:114px;">
                <button type="button" class="layui-btn" id="browseServer2">
                  <i class="layui-icon">&#xe67c;</i>浏览服务器
                </button>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">文件</label>
              <div class="layui-input-inline">
                <input id="articleFile" name="articleFile" type="text" class="layui-input" value="">
              </div>
              <div class="layui-input-inline" style="width:114px;">
                <button type="button" class="layui-btn" id="uploadFile">
                  <i class="layui-icon">&#xe67c;</i>上传文件
                </button>
              </div>
              <div class="layui-input-inline" style="width:114px;">
                <button type="button" class="layui-btn" id="browseFileServer">
                  <i class="layui-icon">&#xe67c;</i>浏览服务器
                </button>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">推送</label>
              <div class="layui-input-block">
                <input type="checkbox" id="articleIsHome" name="articleIsHome" title="首页" value="1" >
                <input type="checkbox" id="articleIsHomePicture" name="articleIsHomePicture" title="首页图片" value="1">
                <input type="checkbox" id="articleIsHomeFirst" name="articleIsHomeFirst" title="首页头条" value="1">
                <input type="checkbox" id="articleIsHomeNews" name="articleIsHomeNews" title="首页信息动态" value="1">
                <input type="checkbox" id="articleIsHomeKeyProject" name="articleIsHomeKeyProject" title="首页重点项目" value="1">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">更新时间</label>
              <div class="layui-input-block">
                <input type="text" id="articleUpdatetime" name="articleUpdatetime" class="layui-input" lay-key="1">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">摘要</label>
              <div class="layui-input-block">
              <textarea name="articleIntro" id="articleIntro" rows="10" cols="80"  class="layui-input"></textarea>
              </div>
            </div>
            <div class="layui-form-item" style="display:none">
              <label class="layui-form-label">关键问题</label>
              <div class="layui-input-block">
              <textarea name="articleKeyQuestion" id="articleKeyQuestion" rows="10" cols="80"  class="layui-input"></textarea>
              </div>
            </div>
            <div class="layui-form-item" style="display:none">
              <label class="layui-form-label">关键技术</label>
              <div class="layui-input-block">
              <textarea name="articleKeyTech" id="articleKeyTech" rows="10" cols="80"  class="layui-input"></textarea>
              </div>
            </div>
            <div class="layui-form-item" style="display:none">
              <label class="layui-form-label">课堂负责人</label>
              <div class="layui-input-block">
              <textarea name="articleResponsor" id="articleResponsor" rows="10" cols="80"  class="layui-input"></textarea>
              </div>
            </div>
            <div class="layui-form-item" style="display:none">
              <label class="layui-form-label">主要参加单位</label>
              <div class="layui-input-block">
              <textarea name="articleUnit" id="articleUnit" rows="10" cols="80"  class="layui-input"></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">内容</label>
              <div class="layui-input-block" id="role-list">
              <textarea name="articleContent" id="articleContent" rows="10" cols="80"  class="layui-input"></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
            </div>
          </form>
        </fieldset>
      </div>
      </div>
 </div>
<!-- 全局js --> 
<script src="../plugins/layui/layui.all.js" charset="utf-8"></script>
<script src="../script/jquery.min.js?v=2.1.4"></script>
<script src="../script/bootstrap.min.js?v=3.3.6"></script>
<script src="../plugins/ckeditor/ckeditor.js" charset="utf-8"></script>

<!-- 自定义js --> 
<script src="../script/content.js?v=1.0.0"></script>
<script src="../script/W.js?v=3.3.6"></script>
<script src="../script/article.js"></script>
<script type="text/html" id="toolBar">
  <a class="layui-btn layui-btn-mini" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-mini" lay-event="del">删除</a>
</script>
<script type="text/html" id="recHomeTpl">
  {{#  if(d.articleIsHome){ }}
    是
  {{#  } else { }}
    否
  {{#  } }}
</script>
<script type="text/html" id="recHomePicTpl">
  {{#  if(d.articleIsHomePicture){ }}
    是
  {{#  } else { }}
    否
  {{#  } }}
</script>
</body>
</html>
